package com.situ.ymall.service.impl;

import com.situ.ymall.entity.GoodsSort;
import com.situ.ymall.mapper.GoodsSortMapper;
import com.situ.ymall.service.GoodsSortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsSortServiceImpl implements GoodsSortService {
    @Autowired
    private GoodsSortMapper goodsSortMapper;

    @Override
    public List getParent() {
        GoodsSort goodsSort = new GoodsSort();
        goodsSort.setStatus(0);
        return goodsSortMapper.select(goodsSort);
    }
}
